#!/usr/bin/env python

import model

import serial

class Rpu(serial.Serial):
    
    def flare(self, device):
        self.write(':%02d\r' % device)
        return model.Measurement.parse(self.readline())
